package frontend.lexer;

public class GramError {
    public int getLineno() {
        return lineno;
    }

    public void setLineno(int lineno) {
        this.lineno = lineno;
    }

    public ErrorCode getCode() {
        return code;
    }

    public void setCode(ErrorCode code) {
        this.code = code;
    }

    private int lineno;
    private ErrorCode code;

    public GramError(int lineno, ErrorCode code) {
        this.lineno = lineno;
        this.code = code;
    }

    public GramError(ErrorCode code, int lineno) {
        this.lineno = lineno;
        this.code = code;
    }
}
